package com.iweb.service;

import com.iweb.mapper.AdminMapper;
import com.iweb.model.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Time :2022/8/16 8:54
 * Author : kriller
 * Project : steam-malls
 */
@Service
public class AdminService {
    @Resource
    private AdminMapper adminMapper;

    public Admin findByAccount(String adminAccount) {
        Admin admin = adminMapper.selectByAccount(adminAccount);
        return admin;
    }
}
